package user_ser

import (
	"gvb_server/global"
	"gvb_server/service/redis_ser"
	"time"
)

func (UserService) Logout(id, token string) error {
	return redis_ser.Logout(id, token)
}

func (UserService) Login(id, token string) error {
	return redis_ser.Login(id, token, time.Hour*time.Duration(global.Config.Jwt.Expires))
}
